package com.h3c.nem.client;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "hr-DataImageClient", url = "api.eos.h3c.com")
public interface DataImageClient {

    /**
     * 获取eostoken
     * @param data
     * @return
     */
    @PostMapping(value = "/user/v1.0/account/token", consumes = {"application/json"})
    JSONObject getEosToken(@RequestBody String data);

    /**
     * 员工头像
     * @param str
     * @param Authorization
     * @return
     */
    @PostMapping(value = "/orgbaseinfo/v1.0/views/performance_image", consumes = {"application/json"}, headers = {"Authorization={Authorization}"})
    JSONObject getWorkerPortrait(@RequestBody String str, @RequestParam("Authorization") String Authorization);


}